WPAICG\WPAICG_Playground D

Total Complexity 246
Dependencies 6
Dependents 3
Total lines 1,419
Lines of code 957
Logical lines of code 547
Comment lines 287
Methods 30
Properties 2

Methods 30

Method Rating Maintainability Complexity Lines of code
wpaicg_stream()
D
25
42 145
wpaicg_token_handling()
D
30 36 113
build_ai_args()
B
41 24 53
get_defined_prompt()
B
40 16 58
get_embeddings_details()
A
40 12 61
search_pinecone()
A
44 10 45
wpaicg_search_internet()
A
46 10 35
wpaicg_embeddings_result_qdrant()
A
48 8 30
wpaicg_embeddings_result_pinecone()
A
45 7 42
handle_embeddings()
A
48 7 35
send_google_request()
S
44 5 43
get_embedding_model()
S
53 6 22
initialize_ai_instance()
S
54 6 21
search_qdrant()
S
47 5 34
handle_sse_callback()
S
56 6 17
wpaicg_event_message()
S
54 5 21
handle_openai_like_stream()
S
49 4 32
handle_internet_search()
S
58 5 14
send_togetherai_request()
S
47 3 37
stream_words_as_sse()
S
58 4 16
process_stream_response()
S
58 4 14
wpaicg_get_cookie_id()
S
58 4 13
wpaicg_generate_content_togetherai()
S
66 3 7
wpaicg_generate_content_google()
S
66 3 7
save_wpaicg_google_api_key()
S
62 3 10
save_wpaicg_togetherai_api_key()
S
62 3 10
get_instance()
S
72 2 6
__construct()
S
65 1 8
handle_google_stream_sse()
S
91 1 2
prepare_api_params()
S
72 1 6